package net.lcheng.service;

import net.lcheng.model.WxShopCategory;
import net.lcheng.vo.WxshopCategoryExtention;

import java.util.List;

/**
 * Created by zwr on 2016/7/5 0005.
 */
public interface WxShopCategoryService {
    /**
     * 根据ShopId查找自己的店铺分类
     * @param shopId
     * @return
     */
    List<WxShopCategory> getWxShopCategoryByShopId(Integer shopId);

    /***
     * 添加分类
     * @param wxShopCategory
     * @return
     */
    int addCategory(WxShopCategory wxShopCategory);

    /**
     * 通过category_id查看WxShopCategory数据
     * @param categoryId
     * @return
     */
    WxShopCategory getWxShopCategoryByCategoryId(String categoryId);

    /**
     * 修改分类
     * @param wxShopCategory
     * @return
     */
    int modifyCategory(WxShopCategory wxShopCategory);

    /***
     * 删除分类(修改Status)
     * @param wxShopCategory
     * @return
     */
    int modifyStatus(WxShopCategory wxShopCategory);

    /**
     * 由主键删除分类（create by Lv）
     * @param key 要删除的分类主键
     * @return int
     */
    int deleteShopCategoryByPrimaryKey(String key);

    /**
     * 店铺分类和分类对应的产品数
     * @param shopId 店铺Id
     * @return list
     */
    List<WxshopCategoryExtention> getShopCategoryAndProductNumByShopId(int shopId);
}
